import pandas as pd
import plotly.express as px

import config
import load_fred
import pca_index

import pandas_datareader

DATA_DIR = config.DATA_DIR

import warnings
warnings.filterwarnings("ignore")

S&P 500#

df = pandas_datareader.get_data_fred('SP500', start='1970-01-01')

fig = px.line(df)
fig.show()

PCA Index Dashboard Examples#

This script was last run at 2024-03-19 10:12:03.425719+00:00 (UTC)
In US/Central Time, this is 2024-03-19 05:12:03.425719-05:00
../_images/64877956ccf09d12653efde3bd630018986c2f802027aa9a17d2f6301ad3fa4a.png
../_images/b871589575469d24bd132da0ada06e5b597865d6c030eb8e578ce9166eebed4a.png